package demo

import (
	v1 "gitee.com/enzolwb/my-web-scaffold/api/v1"
	"github.com/gin-gonic/gin"
)

func ArticleRouteRegister(group *gin.RouterGroup) {
	//获取指定文章
	group.GET("/articles/:id", v1.GetArticle)
	//新建文章
	group.POST("/articles", v1.AddArticle)
	//更新指定文章
	group.PUT("/articles", v1.EditArticle)
	//删除指定文章
	group.DELETE("/articles/:id", v1.DeleteArticle)
}
